package com.hpeu_01.day0108;

public class InnerClassDemo2 {
    public static void main(String[] args) {
        Outer2.Inner2 oi2= new Outer2.Inner2();
        oi2.method();
    }
}
class Outer2 {
    private static int number = 20;
    public static void show(){
        System.out.println("外部类方法");
    }
    static class Inner2{
        private int age = 21;
        public void method(){
            System.out.println("内部类方法");
            System.out.println("number="+number);
            System.out.println("age="+age);
            show();
        }
    }
}
